const Router = require("koa-router");
const router = new Router({ prefix: "/common" });

const { uploadFile } = require("../controller/general/common.controller");
const {
  sendVerificationCode,
} = require("../controller/general/common.send-verification-code");

const { getRegion } = require("../controller/general/common.region");
const {getStatisticalChartTable} = require("../controller/general/statistical-chart-table.controller")

router.post("/uploadFile", uploadFile);
router.post("/send-verification-code", sendVerificationCode);
router.get("/get-region", getRegion);
router.get("/get-statistical-chart-table", getStatisticalChartTable);

module.exports = router;
